package cn.rocky.other;

import java.util.ArrayList;
import java.util.List;

public class TestList03 {

    public static void main(String[] args) {
        List<Object> dataList = new ArrayList<>();
        dataList.add("one");
        dataList.add("two");

        Object[] array = dataList.toArray();
        System.out.println("class: " + array.getClass());

        array[0] = "";

        array[0] = 123;

        array[0] = new Object();
    }
}
